package com.javasea.nio.chat.server;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.ConfigurableApplicationContext;

@SpringBootApplication(scanBasePackages = {"com.javasea.nio.chat"})
public class ChatServerAPPlication {
    public static void main(String[] args) {
        ConfigurableApplicationContext context = SpringApplication.run(ChatServerAPPlication.class, args);
        Server server = context.getBean(Server.class);
        server.start();
    }

}
